﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NetFrame;
using LOLServer.DAO.Model;

namespace LOLServer.Cache.Interface
{
    public interface IUserCache
    {
        bool Create(UserToken token, string name);
        bool HasUser(UserToken tokne);
        bool HasUserByAccountId(int accountId); 
        UserModel GetUser(UserToken token); 
        UserModel GetUser(int userId); 
        UserModel OnLine(UserToken token,int userId);
        void OffLine(UserToken token); 
        UserToken GetConnectUser(int userId); 
        UserModel GetUserByAccountId(int accountId);
        bool OnLine(int userId);
    }
}
